package cn.task.part2.part2;

public class Employee {

	private String Name;

	private Integer IdNumber;

	private String Department;

	private String Position;
	
	public Employee(String Name,Integer IdNumber,
			String Department,String Position) {
		this.Department = Department;
		this.Name = Name;
		this.Position = Position;
		this.IdNumber = IdNumber;
	}
	
	public Employee(String Name,Integer IdNumber) {
		this.Department = null;
		this.Name = Name;
		this.Position = null;
		this.IdNumber = IdNumber;
	}
	
	public Employee() {
		this.Department = null;
		this.Name = null;
		this.IdNumber = null;
		this.Position = null;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public Integer getIdNumber() {
		return IdNumber;
	}

	public void setIdNumber(Integer idNumber) {
		IdNumber = idNumber;
	}

	public String getDepartment() {
		return Department;
	}

	public void setDepartment(String department) {
		Department = department;
	}

	public String getPosition() {
		return Position;
	}

	public void setPosition(String position) {
		Position = position;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("employee [Name=");
		builder.append(Name);
		builder.append(", IdNumber=");
		builder.append(IdNumber);
		builder.append(", Department=");
		builder.append(Department);
		builder.append(", Position=");
		builder.append(Position);
		builder.append("]");
		return builder.toString();
	}
	
}
